<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 
	<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> 
	<META HTTP-EQUIV="Expires" CONTENT="0"> 
	<title>个人资料</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="../../css/font_eolqem241z66flxr.css" media="all" />
	<link rel="stylesheet" href="../../css/news.css" media="all" />
	<script src="../../layui/js/angular.js"></script>
	<script type="text/javascript" src="../../layui/layui/jquery-3.2.1.min.js"></script>
	<script type="text/javascript" src="../../layui/layui/GetPath.js"></script>
	<script src="../../layui/layui/layui.js" charset="utf-8"></script>
	<script type="text/javascript" src="../../layui/js/fy.js"></script>
	<script type="text/javascript" src="../../layui/layui/layer.ext.js"></script>
	<script type="text/javascript" src="../../layui/lay/modules/layer.js"></script>
	<!-- JQuery 的遮罩层 -->
	<style type="text/css">     
    .mask {       
            position: absolute; top: 0px; filter: alpha(opacity=60); 
            z-index: 1002; left: 0px;              
			background:url(../../layui/layui/img/jz.gif) no-repeat center rgba(0,0,0,0.5) ;
		  	background-size:30px 30px;
			background-repeat: no-repeat;
			background: 
        }     
	</style> 
</head>
<body class="childrenBody">
<div id="mask" class="mask"></div>  
	<div class="row">
		<div class="sysNotice col">
			<blockquote class="layui-elem-quote title">我的基本个人信息</blockquote>
	
		<div  class="layui-elem-quote layui-quote-nm">
			<div class="layui-form-item">
			    <label class="layui-form-label">姓名</label>
			    <div class="layui-input-block">
			    	<input type="text" id="XINGMING" disabled class="layui-input">
			    </div>
			</div>
			<div class="layui-form-item">
			    <label class="layui-form-label">工作单位</label>
			    <div class="layui-input-block">
			    	<input type="text" id="DWMC" disabled class="layui-input">
			    </div>
			</div>
			<div class="layui-form-item">
			    <label class="layui-form-label">身份证号</label>
			    <div class="layui-input-block">
			    	<input type="text" id="ZJHM" disabled class="layui-input">
			    </div>
			</div>
			<div class="layui-form-item" pane="">
			    <label class="layui-form-label">开户日期</label>
			    <div class="layui-input-block">
			    	<input type="tel" id="KHRQ" disabled class="layui-input">
			    </div>
			</div>
			<div class="layui-form-item">
			    <label class="layui-form-label">缴存状态</label>
			    <div class="layui-input-block">
			    	<input type="tel" id="GRZHZT" disabled class="layui-input">
			    </div>
			</div>
		</div>
	</div>
	<div class="sysNotice col">
			<blockquote class="layui-elem-quote title">个人可修改信息</blockquote>
	<form class="layui-form">
		<div class="user_right">
			<div class="layui-inline" >
				<label class="layui-form-label">手机号码:</label>
				<div class="layui-input-inline">
					<input type="text" id="SJHM" name="SJHM" autocomplete="off"
						class="layui-input">
				</div>
			</div>
			<br><br>
			<div class="layui-form-item" style="margin:0px;text-align:left;margin-left: 40px;padding:0px;">
		    	<a class="layui-btn" id="submit" lay-filter="changeUser">立即提交</a>
		    </div>
		</div>

	</form>
	</div>
	</div>
	<script type="text/javascript" src="../../layui/layui/jquery-3.2.1.min.js"></script>
	<script type="text/javascript">
		function s(){     
        $("#mask").css("height",$(document).height());     
        $("#mask").css("width",$(document).width());     
        $("#mask").show();     
	    }  
	    //隐藏遮罩层  
	    function h(){     
	          
	        $("#mask").hide();     
	    }  
	</script>
	<script type="text/javascript" src="../../layui/layui/layui.js"></script>
	<script>
		layui.use('layer', function(){
  			var layer = layui.layer;
		});              
	</script>
	<script type="text/javascript">

		$(function(){
		s();
			$.ajax({
				url : getPath()+'/wsyyt/jcjbqkcontroller/test',
				method : 'post',
				dataType : 'JSON',
				success : function(result) {
						h();
					var data = result.data;//这边的data属性是object
					if(result.msg==null){
						layer.msg("登陆失效请重新登陆");
										setTimeout(function () {
											window.top.location.href=res.data;
										}, 1500);
										return;
					}else if(result.code==0){
						$.each(data[0], function(key, value) {
							$("#" + key).val(value);
						});
					}else{
						//layer.msg('提示：'+result.CW,{icon: 5});
						layer.alert('提示：'+result.CW, {
								      skin: 'layui-layer-molv' //样式类名  自定义样式
								     ,closeBtn: 1    // 是否显示关闭按钮
								      ,anim: 1 //动画类型
								     ,btn: ['确认'] //按钮
								      ,icon: 5    // icon
								     ,btn2:function(){
										
						}});
					}
				},
			});
			s();
			$.ajax({
				url : getPath()+'/wsyyt/jcjbqkcontroller/test1',
				method : 'post',
				dataType : 'JSON',
				success : function(result) {
				h();
				var data = result.data;
				var x=[];
				var y=[];
				for(var i=0;i<data.length;i++){
					var a=data[i].JJNY;
					var b=data[i].GRYJCE;
					x.push(a);
					y.push(b);
				}
					f(x,y);
				},
			});
		});
		$("#submit").click(function(){
			var sj=$("#SJHM").val();
			if(sj.length < 11 ||sj.length > 11){
					//layer.msg(,{icon: 5});	
					layer.alert('提示：请填写正确的手机号码', {
								      skin: 'layui-layer-molv' //样式类名  自定义样式
								     ,closeBtn: 1    // 是否显示关闭按钮
								      ,anim: 1 //动画类型
								     ,btn: ['确认'] //按钮
								      ,icon: 5    // icon
								     ,btn2:function(){
										
						}});
			}else if(sj.length==11){
			s();
				$.ajax({
				url : getPath()+'/wsyyt/jcjbqkcontroller/test2',
				method : 'post',
				dataType : 'JSON',
				data: {'sjhm':sj},
				success : function(result) {
				h();
				var code = result.code;
					if(result.msg==null){
						layer.msg("登陆失效请重新登陆");
										setTimeout(function () {
											window.top.location.href=res.data;
										}, 1500);
										return;
					}else if(code==0){
						//layer.msg('提示：变更成功',{icon: 6});	
						layer.alert('提示：变更成功', {
								      skin: 'layui-layer-molv' //样式类名  自定义样式
								     ,closeBtn: 1    // 是否显示关闭按钮
								      ,anim: 1 //动画类型
								     ,btn: ['确认'] //按钮
								      ,icon: 6    // icon
								     ,yes:function(){
										window.location.href=window.location.href;
								     }});
					}else{				
						//layer.msg('提示：'+result.CW,{icon: 5});	
						layer.alert('提示：'+result.CW, {
								      skin: 'layui-layer-molv' //样式类名  自定义样式
								     ,closeBtn: 1    // 是否显示关闭按钮
								      ,anim: 1 //动画类型
								     ,btn: ['确认'] //按钮
								      ,icon: 5    // icon
								     ,btn2:function(){
										
						}});
					};
				}
			});
			}
		});
	</script>
	<script type="text/javascript">
		$(function(){
			$.ajax({
				url : getPath()+'/wsyyt/jcjbqkcontroller/sj',
				method : 'post',
				dataType : 'JSON',
				success : function(res2) {
					if(res2.msg==null){
						layer.msg("登陆失效请重新登陆");
										setTimeout(function () {
											window.top.location.href=res.data;
										}, 1500);
										return;
					}else{ 	
						var data1 = res2.data;//这边的data属性是object
						$("SJHM").html(data1[0].SJHM);
					}
				},
			});
		});
	</script>
	<script type="text/javascript" src="../../js/log.js"></script>
</body>
</html>